const express = require("express");
const apiRouter = express.Router();

apiRouter.get("/get",(req,res)=>{
    let query = req.query;
    res.send({
        status:0,
        method:"GET",
        data:query
    })
})


apiRouter.post("/post",(req,res)=>{
    let body = req.body;
    res.send({
        status:0,
        method:"post",
        data:body
    })
})
module.exports = apiRouter;